<?php

require_once "core/application/models/musers/musers6.php";

class Musers7 extends Musers6 {
    
    private $_query;

    protected function isFriends($playerId, $friendId) {
        /**
         * @param int $playerId
         * @param int $friendId
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT * FROM `friends` WHERE `player` = '$playerId' AND `friend` = '$friendId'";
        if (mysql_num_rows(DB::getInstance()->sql($this->_query))) {
            return true;
            DB::getInstance()->closeConnection();
            unset($this->_query);
        } else {
            return false;
            DB::getInstance()->closeConnection();
            unset($this->_query);
        }
    }
}
?>
